package com.example.demo.controller;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.example.demo.common.JsonResult;
import com.example.demo.dto.LoginResponseDto;
import com.example.demo.service.EmployeeYHLService;

/**
 * Employee Info Select YangHailian Controller
 */
@RestController
@RequestMapping("/bffyhl")
public class EmployeeYHLController {

	@Resource
	private EmployeeYHLService employeeYhlService;

	/**
	 * Employee Info select
	 *
	 * @param requestDto ログイン用Request DTO
	 * @return JsonResult
	 */
	@PostMapping(value = "/login")
	public JsonResult login() {
		List<LoginResponseDto> loginResponseDtoList = employeeYhlService.login();
		return JsonResult.success(loginResponseDtoList);
	}
}
